"""
@Project:cloudnews-master
@File:smscode.py
@Author:柴奇峰
@Date:18:44
"""
from ronglian_sms_sdk import SmsSDK
from celerys.celert import apps

accId = '8aaf07087f77bf96017fde90f5623541'
accToken = '0ee2828148f74420a513d52db4736eaa'
appId = '8aaf07087f77bf96017fde90f65c3548'

@apps.task()
def sms_code(mobile,code):
    tid = '1'
    datas = (code, '5')
    rest = SmsSDK(accId, accToken,appId).sendMessage(tid, mobile, datas)
    return rest